|
Расположение в меню |
---|
Нет |
Верстаки |
Все |
Быстрые клавиши |
Нет |
Представлено в версии |
0.19 |
См. также |
Создать деталь, Создать группу, Создать ссылку |
"Сделать доп. ссылку" создает App Link (класс
App::Link
), точно так же, как и команда "Создавть ссылку", но предварительно оперирует с выбранными подэлементами и устанавливает ДанныеLink Transform как
true
.
With selection:
Without selection:
Original body, and three Links created from the subelements of it, including edges and faces.
This command creates a new App Link; its properties are described in Std LinkMake.
In particular, ДанныеLink Transform is set to true
, so ДанныеPlacement becomes hidden, and instead ДанныеLink Placement controls the position of the Link with respect to the position of ДанныеLinked Object.
See Std LinkMake for the general information.
An App Link is created with the addObject()
method of the document. To define a relative link, its setLink
method is used to pick the source object, and one or more of its subelements. Then the LinkTransform
attribute is set to True
.
import FreeCAD as App
doc = App.newDocument()
body = App.ActiveDocument.addObject("Part::Box", "Box")
obj = App.ActiveDocument.addObject("App::Link", "Link")
obj.setLink(body, '', ['Edge1', 'Edge6', 'Edge7', 'Edge10', 'Face2', 'Face3'])
obj.LinkTransform = True
obj.LinkPlacement.Base = App.Vector(20, 20, 0)
App.ActiveDocument.recompute()